import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";

/** 标签列表 */
export const tags_list = (data?: object) => {
  return http.request<any>("post", baseUrlApi("user/tags_list"), { data });
};

/** 标签添加 */
export const tags_add = (data?: object) => {
  return http.request<any>("post", baseUrlApi("user/tags_add"), { data });
};

/** 标签编辑 */
export const tags_save = (data?: object) => {
  return http.request<any>("post", baseUrlApi("user/tags_save"), { data });
};

/** 标签升序 */
export const tags_up = (data?: object) => {
  return http.request<any>("post", baseUrlApi("user/tags_up"), { data });
};

/** 标签降序 */
export const tags_down = (data?: object) => {
  return http.request<any>("post", baseUrlApi("user/tags_down"), { data });
};

/** 标签删除 */
export const tags_del = (data?: object) => {
  return http.request<any>("post", baseUrlApi("user/tags_del"), { data });
};